trigger CreateApprovalProcess on PESampleRequest__c (after update) {
  
        for(PESampleRequest__c Pe : Trigger.new)
        {
            if(Pe.ApprovalStatus__c == '等待审批')
            {
                Approval.ProcessSubmitRequest Req = new Approval.ProcessSubmitRequest();   
                Req.setObjectId(Pe.Id);
                Approval.ProcessResult result = Approval.process(Req);  
            }
            if(Pe.Approved__c)
            {
                SendPERequest.SendOrderToDistributor(Pe.id);
            }
        }
}